<?php

namespace app\Common\validate;
use think\Validate;

class Bis extends Validate
{
    protected $rule = [
        ['name|商户名称', 'require|max:25'],
        ['email|邮箱', 'email'],
        ['logo|logo图片', 'require'],
        ['city_id|所属城市', 'require'],
        ['bank_info|银行账号', 'require'],
        ['bank_name|开户行名称', 'require'],
        ['bank_user|开户行姓名', 'require'],
        ['faren|法人', 'require'],
        ['faren_tel|法人电话', 'require'],
    ];
    // 场景设置
    protected $scene = [
        'add'=>['name', 'email', 'logo', 'city_id', 'bank_info', 'bank_name', 'bank_user', 'faren', 'faren_tel'],
    ];
}